﻿#include"SeqList.h"


void TestSeqList1()
{
	SeqList s;
	SeqListInit(&s);
    SeqListPushBack(&s,1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPrint(&s);

	SeqListPushFront(&s, 0);
	SeqListPushFront(&s, 0);
	SeqListPushFront(&s, 0);
	SeqListPrint(&s);

	

	SeqListPopFront(&s);
	SeqListPrint(&s);
	SeqListPopFront(&s);
	SeqListPrint(&s);
	SeqListInsert(&s, 2, 5);
	SeqListPrint(&s);
	SeqListInsert(&s, 4, 0);
	SeqListPrint(&s);

	SeqListErase(&s,4);
	SeqListPrint(&s);
	SeqListErase(&s, 1);
	SeqListPrint(&s);

	SeqListErase(&s, 3);
	SeqListPrint(&s);

	SeqListModify(&s, 0, 8);
	SeqListPrint(&s);
}
int main()
{
	TestSeqList1();
	return 0;
}